0.0
No commit activity in last 3 years
No release in over 3 years
You can generate bfon objects with simple method calls
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.9
~> 10.0

Runtime

~> 1.8
 Project Readme

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