Skip to content
No description, website, or topics provided.
Ruby
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.gitignore
Gemfile
README.md
Rakefile
bfon_builder.gemspec

README.md

BulutfonXM Json Builder

Gem Version

Installation

Add this line to your application's Gemfile:

gem 'bfon_builder'

And then execute:

$ bundle

Or install it yourself as:

$ gem install bfon_builder

###Usage

You can chain methods.

bfxm = BfonBuilder.new;

bfxm.play('http://bfxmdemo.bulutfon.com/demosesler/demo-hosgeldiniz.mp3')
	.dial(10)
	.build;

By default build() will return below code if you want to set json header and output below code just use build(true).

{
    "bfxm": {
        "version": 1
    },
    "seq": [
        {
            "action": "play",
            "args": {
                "url": "http://bfxmdemo.bulutfon.com/demosesler/demo-hosgeldiniz.mp3"
            }
        },
        {
            "action": "dial",
            "args": {
                "destination": 10
            }
        }
    ]
}

###Methods

  • play($url)

  • gather

  • hangup

  • reject

  • set_caller

  • say

  • dial

You can’t perform that action at this time.